#!/usr/bin/env bash

if ./get-join-cmd.sh
then 
    echo "begin to add work node"
    ./run-yml.sh add-work-node.yml

else 
    echo "error, maybe failed to kubeadm init"
    exit 2
fi 
